extends Node2D

#Mod名称，必须
var modName = "原版扩展·基础框架"
var utils = null
var base = null

func initModSetting(container):
	
	base = sys.get_node("VEBase")
	utils = base.utils
	#创建一个一行2格的表格容器，用于存放各种组件
	var grid = utils.createGridContainer(container, 2)

	utils.createItemButton(grid, self, "MOD说明", "guide", [])
	utils.createItemButton(grid, self, "更新日志", "changeLog", [])
	
	#羁绊开关
#	var trait = CheckButton.new()
#	trait.text = "羁绊开关[装备&人物&职业&神徽]"
#	trait.connect("pressed", self, "switchCheckBotton", ["trait",trait])
#	grid.add_child(trait)
#	#读取MOD设置，设置按钮状态
#	trait.pressed = base.getSetting("vanillaExtended", "trait", true)
#	switchCheckBotton("trait",trait)
	
# 切换类按钮事件
func switchCheckBotton(key,btn):
	base.setSetting("vanillaExtended", key, btn.pressed, true)

#打开MOD说明窗口
func guide():
	pass
#打开更新日志窗口
func changeLog():
	pass
